package com.rules.admin.vo;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.rules.admin.json.Long2String;
import com.rules.admin.json.String2Long;

import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
public class UserGroupPermissionInfo implements Serializable {
    @JsonSerialize(
            using = Long2String.class
    )
    @JsonDeserialize(
            using = String2Long.class
    )
    private Long id;
    @JsonSerialize(
            using = Long2String.class
    )
    @JsonDeserialize(
            using = String2Long.class
    )
    private Long targetId;
    private Integer targetType;
    @JsonSerialize(
            using = Long2String.class
    )
    @JsonDeserialize(
            using = String2Long.class
    )
    private Long ownerId;
    private Integer ownerType;
    private Integer mode;
    private String createrId;
    private Date createTime;
    private String updaterId;
    private Date latestTime;
    private String groupName;
    @JsonSerialize(
            using = Long2String.class
    )
    @JsonDeserialize(
            using = String2Long.class
    )
    private Long groupId;

    public UserGroupPermissionInfo() {
    }

}
